package com.ruoyi.mine.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mine.mapper.MyInheritMapper;
import com.ruoyi.mine.domain.MyInherit;
import com.ruoyi.mine.service.IMyInheritService;

/**
 * 我的传承Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-07-29
 */
@Service
public class MyInheritServiceImpl implements IMyInheritService 
{
    @Autowired
    private MyInheritMapper myInheritMapper;

    /**
     * 查询我的传承
     * 
     * @param inheritId 我的传承主键
     * @return 我的传承
     */
    @Override
    public MyInherit selectMyInheritByInheritId(Long inheritId)
    {
        return myInheritMapper.selectMyInheritByInheritId(inheritId);
    }

    /**
     * 查询我的传承列表
     * 
     * @param myInherit 我的传承
     * @return 我的传承
     */
    @Override
    public List<MyInherit> selectMyInheritList(MyInherit myInherit)
    {
        return myInheritMapper.selectMyInheritList(myInherit);
    }

    /**
     * 新增我的传承
     * 
     * @param myInherit 我的传承
     * @return 结果
     */
    @Override
    public int insertMyInherit(MyInherit myInherit)
    {
        return myInheritMapper.insertMyInherit(myInherit);
    }

    /**
     * 修改我的传承
     * 
     * @param myInherit 我的传承
     * @return 结果
     */
    @Override
    public int updateMyInherit(MyInherit myInherit)
    {
        return myInheritMapper.updateMyInherit(myInherit);
    }

    /**
     * 批量删除我的传承
     * 
     * @param inheritIds 需要删除的我的传承主键
     * @return 结果
     */
    @Override
    public int deleteMyInheritByInheritIds(Long[] inheritIds)
    {
        return myInheritMapper.deleteMyInheritByInheritIds(inheritIds);
    }

    /**
     * 删除我的传承信息
     * 
     * @param inheritId 我的传承主键
     * @return 结果
     */
    @Override
    public int deleteMyInheritByInheritId(Long inheritId)
    {
        return myInheritMapper.deleteMyInheritByInheritId(inheritId);
    }
}
